#ifndef _CRITICAL_H
#define _CRITICAL_H

#ifdef __cplusplus
extern "C" {
#endif

#define MAX_CRITICAL	10

typedef struct critical_section
{
	volatile int in_critical;
	int critical_path[MAX_CRITICAL];
	int ccount;

	struct critical_setcion *next;
} critical_section_t;

#ifdef __cplusplus
}
#endif

#endif
